//
//  GuanYuViewController.m
//  XDCommonApp
//
//  Created by wanglong8889@126.com on 14-3-28.
//  Copyright (c) 2014年 XD-XY. All rights reserved.
//

#import "GuanYuViewController.h"
#import "XDHeader.h"
#import "XDTools.h"
@interface GuanYuViewController ()

@end

@implementation GuanYuViewController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
	// Do any additional setup after loading the view.
    self.titleLabel.text = @"关于找画";
    self.navigationBarBg.backgroundColor = [UIColor whiteColor];
    self.titleLabel.textColor = [UIColor blackColor];
    self.titleLabel.font = [UIFont systemFontOfSize:15];
    self.contentView.backgroundColor = UIColorFromRGB(0xebebeb);
    
    [self initGuanyuView];
}
-(void)initGuanyuView{
    float imageY = 0.0;
    if (iPhone5) {
        imageY = 198.0;
    }else{
        imageY = 150;
    }
    UIImageView * guanyuImageView = [[UIImageView alloc] initWithFrame:CGRectMake(110, imageY, 100, 33)];
    guanyuImageView.image = [UIImage imageNamed:@"guanyu_con"];
    [self.contentView addSubview:guanyuImageView];
    
    UILabel *nameLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, self.contentView.frame.size.height-80, 320, 18)];
    nameLabel.backgroundColor = [UIColor clearColor];
    nameLabel.text = @"找画";
    nameLabel.textAlignment = NSTextAlignmentCenter;
    nameLabel.font = [UIFont systemFontOfSize:13.0];
    nameLabel.textColor = [UIColor grayColor];
    [self.contentView addSubview:nameLabel];
    
    
    
    UILabel *versonLabel = [[UILabel alloc] initWithFrame:CGRectMake(142,nameLabel.frame.origin.y+nameLabel.frame.size.height, 33, 18)];
    versonLabel.backgroundColor = [UIColor clearColor];
    versonLabel.text = [[NSString alloc] initWithString:[[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleShortVersionString"]];
    versonLabel.textAlignment = NSTextAlignmentCenter;
    versonLabel.font = [UIFont systemFontOfSize:13.0];
    versonLabel.textColor = [UIColor grayColor];
    [self.contentView addSubview:versonLabel];
    
    UILabel *timeLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, versonLabel.frame.origin.y+versonLabel.frame.size.height, 320, 18)];
    timeLabel.backgroundColor = [UIColor clearColor];
    timeLabel.text = @"2014-3-26";
    timeLabel.textAlignment = NSTextAlignmentCenter;
    timeLabel.font = [UIFont systemFontOfSize:13.0];
    timeLabel.textColor = [UIColor grayColor];
    [self.contentView addSubview:timeLabel];
    
    UILabel *copyRightLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, timeLabel.frame.origin.y+timeLabel.frame.size.height, 320, 18)];
    copyRightLabel.backgroundColor = [UIColor clearColor];
    copyRightLabel.text = @"北京唯画众享信息技术有限公司 版权所有";
    copyRightLabel.textAlignment = NSTextAlignmentCenter;
    copyRightLabel.font = [UIFont systemFontOfSize:13.0];
    copyRightLabel.textColor = [UIColor grayColor];
    [self.contentView addSubview:copyRightLabel];
}
- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
